package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户工作信息
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:Work")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_work")
public class Work implements Serializable {
    private static final long serialVersionUID = 6113722478226876289L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 公司名称
     */
    @TableField(value = "company")
    @ApiModelProperty(value = "公司名称")
    private String company;

    /**
     * 工作职位
     */
    @TableField(value = "job")
    @ApiModelProperty(value = "工作职位")
    private String job;

    /**
     * 行业编号
     */
    @TableField(value = "profession_id")
    @ApiModelProperty(value = "行业编号")
    private Integer professionId;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
